﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="PerfilEmpreendedor.FrontEnd.Login" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
     <link href="Css/Estilos.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <ext:ResourceManager ID="ResourceManager1" runat="server">
    </ext:ResourceManager>
   
    <ext:Window ID="windowLogon" runat="server" Closable="false" Resizable="false" Height="300"
        Icon="Lock" Title="Informe seus dados de acesso" Draggable="false" Width="350"
        Modal="true" BodyPadding="10" Layout="AnchorLayout" Padding="10">
        <Items>
            <ext:Image ID="Image1" runat="server" ImageUrl="Images/SplashLogin.png">
            </ext:Image>
            <ext:TextField ID="txtLogin" runat="server" FieldLabel="Login" AllowBlank="false"
                BlankText="Login é obrigatório." AnchorHorizontal="100%" />
            <ext:TextField ID="txtSenha" runat="server" InputType="Password" FieldLabel="Senha"
                AllowBlank="false" BlankText="Senha é obrigatória."  AnchorHorizontal="100%" />
           
        </Items>
        <Buttons>
         <ext:Button ID="btnNovo" Text="Não possui uma conta? Crie agora" NavigateUrl="Inscrever.aspx" Icon=StarHalfGrey />
            <ext:Button ID="btnLogin" runat="server"  Text="Entrar" Icon="Accept">
                <DirectEvents>
                    <Click OnEvent="btnLogin_Click">
                        <EventMask ShowMask="true" Msg="Verificando..." MinDelay="100" />
                    </Click>
                </DirectEvents>
            </ext:Button>
           
        </Buttons>
    </ext:Window>
    <ext:KeyMap ID="KeyMap1" runat="server" Target="={windowLogon.getBody()}">
            <ext:KeyBinding>
                <Keys>
                    <ext:Key Code="ENTER" />
                </Keys>
                <Listeners>
                    <Event Handler="#{btnLogin}.fireEvent('click');" />
                </Listeners>
            </ext:KeyBinding>    
        </ext:KeyMap>
    </form>
</body>
</html>
